<template>
    <el-breadcrumb separator="/">
        <el-breadcrumb-item v-for="item in breadcrumb" :key="item.path" :to="item.children ? '' : item.path">{{ $t(`${item.meta.title}`) }}</el-breadcrumb-item>
    </el-breadcrumb>
</template>
<script lang="ts" setup>
import { computed } from "vue";
import { useRoute } from "vue-router";
const route = useRoute();
// 面包屑
const breadcrumb = computed(() => {
    const item = route.matched.filter((item: any) => item.path != "/home");
    return item;
});
</script>
